USE [HR_DB]
GO
if exists(select * from dbo.sysobjects where id = object_id(N'engage_answer')   and   OBJECTPROPERTY(id,   N'IsUserTable')   =   1)   
  drop table engage_answer  
-- =============================================
-- Author:杨洁(kaixuanpisces)
-- Create date: 20090826
-- Description:考试答题登记表
-- =============================================
CREATE TABLE [dbo].[engage_answer](
	[ans_id] [smallint] IDENTITY(1,1) NOT NULL,
	[answer_number] [varchar](30) NULL,
	[exam_number] [varchar](30) NULL,
	[resume_id] [smallint] NULL,
	[interview_id] [smallint] NULL,
	[human_name] [varchar](60) NULL,
	[human_idcard] [varchar](30) NULL,
	[major_kind_id] [char](2) NULL,
	[major_kind_name] [char](10) NULL,
	[major_id] [char](10) NULL,
	[major_name] [char](10) NULL,
	[test_time] [datetime] NULL,
	[use_time] [varchar](20) NULL,
	[total_point] [numeric](5, 2) NULL,
 CONSTRAINT [engage_answer_PK] PRIMARY KEY CLUSTERED 
(
	[ans_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
-- ==============================================
-- 列名说明
-- ==============================================
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键，自动增长列' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'ans_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'答案编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'answer_number'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试卷编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'exam_number'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'简历编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'resume_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'面试编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'interview_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'human_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'身份证号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'human_idcard'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'职位分类编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'major_kind_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'major_kind_name 属于 engage_answer' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'major_kind_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'major_id 属于 engage_answer' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'major_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'major_name 属于 engage_answer' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'major_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'测试时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'test_time'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'use_time 属于 engage_answer' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'use_time'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总分' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer', @level2type=N'COLUMN',@level2name=N'total_point'
